package com.vnl.system.aaa.service;

import com.vnl.system.aaa.entity.IUser;
import com.vnl.system.aaa.service.rule.ILoginRule;
import com.vnl.system.aaa.service.rule.IPasswordVerifyRule;
import com.vnl.system.aaa.util.AAException;

public interface IAAService {

    /**
     * 增加login時的規則
     * @param rule
     */
    public void addLoginRule(ILoginRule rule);
    
    /**
     * 清除所有登入規則
     */
    public void removeLoginRules();
    
    /**
     * 設定驗證密碼的規則
     * @param rule
     */
    public void setPasswordRule(IPasswordVerifyRule rule);
    
    public IUser login(String companyUUID, String loginId, String password, String src) throws AAException;
    
}
